__author__ = 'zoulida'


from selenium import webdriver
import time
driver = webdriver.Firefox()
url = "http://www.baidu.com"
driver.get(url)
driver.find_element_by_id('kw').send_keys("selenium")
driver.find_element_by_id("su").click()
time.sleep(2)
driver.find_element_by_id('kw').clear()
driver.find_element_by_id('kw').send_keys("python")
driver.find_element_by_id("su").click()
time.sleep(5)
driver.quit()
